package com.xbchzh.clifford.utils;

import org.hibernate.dialect.MySQL5Dialect;
import org.hibernate.dialect.function.SQLFunctionTemplate;
import org.hibernate.type.StandardBasicTypes;

public class MyISAMDialect extends MySQL5Dialect {
	
	public MyISAMDialect(){
		super();
		registerFunction("convert_gbk", new SQLFunctionTemplate(StandardBasicTypes.STRING, "convert(?1 using gbk)"));
	}
    @Override
    public String getTableTypeString() {
        return "engine=MyISAM";
    }
}